INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/IfcGears/src)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/src)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/ext)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/ext/carve/include)
INCLUDE_DIRECTORIES(${OPENSCENEGRAPH_INCLUDE_DIRS})


#SET(ifcgears2osg_CXX_SRC

AUX_SOURCE_DIRECTORY(ext/carve/lib ifcgears2osg_CXX_SRC)
list(APPEND ifcgears2osg_CXX_SRC
ext/carve/common/geometry.cpp
src/ifc2osg/BooleanModeller.cpp
src/ifc2osg/Nurbs.cpp
src/ifc2osg/PlacementConverter.cpp
src/ifc2osg/ProfileConverter.cpp
src/ifc2osg/ReaderWriterIFC.cpp
src/ifc2osg/RepresentationConverter.cpp
src/ifc2osg/SectionedSpine.cpp
src/ifc2osg/StylesConverter.cpp
src/ifc2osg/Utility.cpp
)

# create library
ADD_LIBRARY(ifcgears2osg STATIC ${ifcgears2osg_CXX_SRC})

